#pragma once 

#define FLUSH_NONE 1
#define FLUSH_LINE (1 << 1)
#define FLUSH_ALL  (1 << 2)

typedef struct _myFILE
{
    // 文件标识符
    int _fileno;
    // 缓冲区大小
    char buffer[10000];
    // 刷新方式
    int _flag;
    // 定义缓冲区当前几个元素
    int _end;


}myFILE;

myFILE* myFileOpen(const char* path, const char* mode);
int myFileWrite(const char* str, int num, myFILE* stream);
int myFileFlush(myFILE* stream);
int myFileClose(myFILE* stream);

